import request from '@/util/request';

export default {
    findAllStudents() {

        return request({  // 查询所有学生
            url:"/student/list",
            method:"get"
        })
    },

    findByPage(page,pageSize){  // 分页查询
            return request({
                url:`/student/findByPage/${page}/${pageSize}`,
                method:"get"
            })
        },

    search(page,pageSize,data){  // 条件查询带分页
            return request({
                url:`/student/search/${page}/${pageSize}`,
                method:"post",
                data
            })
        },

    save(url,method,data){  // 保存学生
            return request({
                url,
                method,
                data
            })
        },

    deleteStudent(ids){  // 删除学生
            return request({
                url:`/student/delete/${ids}`,
                method:"delete"
            })
        }

}



